package com.travel.service;

import com.qianfeng.util.ResultMsg;
import com.travel.entity.TbCart;
import com.travel.entity.TbTripOrder;
import com.travel.entity.TbUser;

public interface TripOrderService {
    /**
     * 添加车票订单
     * */
    ResultMsg addCartOrder(TbCart tbCart, TbUser tbUser);
   /* ResultMsg addCartOrder(TbTripOrder tbTripOrder);*/
    /**
     * 查询所有车票信息
     * */
    ResultMsg getAllTripOrder(int current, int size);

    ResultMsg getTripOrderById(String tripTicketId);

    ResultMsg updateTripOrder(TbTripOrder tbTripOrder);

    ResultMsg addTripOrder(TbTripOrder tbTripOrder);

    ResultMsg deleteTripOrder(int id);

    ResultMsg carOrder(TbTripOrder tbTripOrder);

    ResultMsg addAirOrder(TbTripOrder tbTripOrder);

    ResultMsg findAllOrder(int current, int size);

    ResultMsg deleteByOne(String tripTicketId);
}
